package com.frxuexi.mynews

import android.app.Application
import android.content.Context
import com.alibaba.android.arouter.launcher.ARouter
import com.tencent.mmkv.MMKV


class App:Application() {

    companion object{
        @JvmField
        var context:Context?=null


    }



    override fun onCreate() {
        super.onCreate()
        ARouter.init(this)
        ARouter.openLog()
        ARouter.openDebug()

        //初始化
        MMKV.initialize(this)
        getContext()
    }

    fun getContext(){
        context=this
    }
}